<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="title">
            <h2><a href="#" class="back" onclick="history.go(-1)"/>Relatório Processo</h2>
        </ui:define>

        <ui:define name="body">
            <h:form id="protocoloForm" enctype="multipart/form-data">            
                <p:messages id="messages" closable="true" showDetail="true" autoUpdate="true"  />

                <p:panel id="dadosGeraisPanel" styleClass="container_24 clearfix">
                    <h2>Filtros</h2>
                    <br/>

                    <p:outputLabel value="Data Ini:" styleClass="grid_3" for="dataIni" />
                    <p:calendar id="dataIni" value="#{managerPesquisarProtocolo.dataIni}"
                                showOn="both" locale="pt" 
                                navigator="true" pattern="dd/MM/yyyy" styleClass="grid_8" />
                    <p:outputLabel value="Data Fim:" styleClass="grid_3" for="dataFim" />
                    <p:calendar id="dataFim" value="#{managerPesquisarProtocolo.dataFim}"
                                showOn="both" locale="pt" 
                                navigator="true" pattern="dd/MM/yyyy" styleClass="grid_8" />

                    <div class="clear-both" /><br />

                    <div class="buttonAction">
                        <p:commandButton  
                            title="Imprimir" 
                            ajax="false" update="@form" process="@this"
                            onclick="this.form.target='_blank'"
                            actionListener="#{managerPesquisarProtocolo.relatorio()}"
                            value="Imprimir"/>
                    </div>
                    <br />
                </p:panel> 

            </h:form>
        </ui:define>
    </ui:composition>
</html>



